<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.roadmap.common.RdcResourceBundle" %>
<%@ page import= "com.roadmap.struts.action.ActionConst"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()	+ path + "/";
String user_ssn_id = (String)request.getSession().getAttribute(ActionConst.Aspirant_Id_In_Session);
if(user_ssn_id != null){
	response.sendRedirect(basePath + "home.do");
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="ucdream,目标管理,计划管理,任务管理,执行跟踪,分享知识经验,网络社区" />
<meta name="description" content="ucdream是一个帮助用户管理目标、计划和任务，跟踪执行状况的在线人生规划系统;同时又是基于真实人际关系的网络社区，与好友分享自己的成长经历." />
<link href="res/images/RDIcon.ico" rel= "Shortcut Icon"/>
<link href="res/css/layout.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/auth.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="res/js/auth.js"></script>
<script type="text/javascript" src="res/js/func.js"></script>
<script type="text/javascript" src="dwr/engine.js"> </script>
<script type="text/javascript" src="dwr/interface/UtilHandler.js"></script>
<title><%=RdcResourceBundle.COMPANY_ADVERT_CALL %> | <%=RdcResourceBundle.COMPANY_NAME %></title>
</head>

<body onload="initLogon();">
	<!-- define header including menus and logo -->
	<div id="header">
		<div id="logo-big"></div>
		<div id="logo-slogan"><%=RdcResourceBundle.COMPANY_ADVERT_CALL %></div>
	</div>
	
	<!-- function area -->
	<div class="mainbody"><div class="main-height"><div class="authbody">
		<!-- define left side column -->
		<div class="left-side-col">
			<div style="float:left;"><img class="main-image" src="res/images/indexpaint.gif" alt="pic"/></div>
			<div style="text-align:left;float:left;">
				<p><strong>ucdream</strong>是一个帮助用户管理目标、计划和任务，跟踪执行状况的在线人生规划系统；</p>
				<p><strong>ucdream</strong>同时又是基于真实人际关系的网络社区，与好友分享自己的成长经历。</p>
				<p><strong>ucdream</strong>唯一目的就是帮助你成长！</p>
			</div>
		</div>
		
		<!-- define right side column -->
		<div class="right-side-col">			
			<div class="login-form">
			<!-- define a form for logging in -->
			<html:form action="/logon" onsubmit="return checkLogonInputs();">	
				<bean:cookie id="mailCookie" name="cookMail" value=""/>		
				<bean:cookie id="pwrdCookie" name="cookPwrd" value=""/>
				<bean:cookie id="rembCookie" name="cookRemb" value=""/>
					
				<div class="frame">			
					<div id="logonMessage" class="error-message" style="display:none;"></div>
					<table class="login-table">
					<tr>
						<td class="left-column">邮箱:</td>
						<td class="right-column">
							<html:text property="logonMail" styleClass="input-text" value="<%=mailCookie.getValue()%>"  tabindex="1" onfocus="RDC.gui.hideMsg('regMessage');"/>
						</td>
					</tr>
					<tr>
						<td class="left-column">密码:</td>
						<td class="right-column">
							<html:password property="password" styleClass="input-text" maxlength="16" tabindex="2" onfocus="RDC.gui.hideMsg('regMessage');"/>	
						</td>						
					</tr>
					<tr>
						<td class="left-column"></td>
						<td class="right-column">
							<span><html:checkbox property="rememberMe" style="float: left;" value="<%=rembCookie.getValue()%>" tabindex="3" onclick="rememberUser();"/></span>
							<span style="float: left; margin-top:3px;">记住我</span>							
						</td>
					</tr>
					<tr>
						<td class="left-column"></td>
						<td class="right-column">
							<a class="right-side" href="auth/getpwd.jsp" target="_self">找回密码</a>
							<html:submit property="logonbtn" styleClass="submit-logon" value="登陆" tabindex="3"/>
						</td>
					</tr>
					</table>
				</div>
			</html:form>
			
			<hr width="80%" color="#B8D4E8" size="1px"/>
			
			<html:form action="/signf" onsubmit="return checkSignfInputs();">
				<div class="frame">	
					<div id="regMessage" class="error-message"></div>
					<!-- define a form for registration -->
					<table class="login-table">
						<tr>
							<td class="left-column">邮箱:</td>
							<td class="right-column">
								<html:text property="regMail" styleClass="input-text" tabindex="5" maxlength="50" onfocus="RDC.gui.hideMsg('logonMessage');"/>				
							</td>
						</tr>
						<tr>
							<td class="left-column">验证码:</td>
							<td class="right-column">
								<html:text property="codes" styleClass="input-text" tabindex="6" maxlength="4" onfocus="RDC.gui.hideMsg('logonMessage');"/>	
							</td>						
						</tr>
						<tr>
							<td class="left-column"></td>
							<td class="right-column"><img class="input-image" alt="code..." name="randImage" id="randImage" src="res/jsp/rand.jsp"/></td>		
							</tr>				
						<tr>
							<td class="left-column"></td>
							<td class="right-column"><html:submit property="signfSubmit" styleClass="submit-signup"value="注册" tabindex="7"/></td>
						</tr>
					</table>
				</div>
			</html:form>	<!--  class="login-table" -->		

			</div>	<!-- class="login-form" -->	
						
		</div><!-- class="left-right-col" -->
		
		
	</div><!-- class="authbody" -->		
	</div><!-- class="main-height" -->
	
	<div class="clear-div"></div>
	</div><!-- <div class="mainbody"> -->
			
	<jsp:include page="/res/jsp/footer.jsp"></jsp:include>

</body>

</html>
